package com.aspire.nm.component.cmppserver;
import java.util.List;

import com.aspire.nm.component.cmppserver.deliverListenerDefault.DeliverListenerImpl;
import com.aspire.nm.component.cmppserver.plugins.DeliverListener;



public class ClientConfig implements Cloneable{

    
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
	private String pass;
	private int maxConnNum;
	private String ip="";
	private String srcid;
	private int dayMtLimit;
    private int moLimitInSec;
	private int mtLimitInSec;
	private String serviceId;
	private String username;
	private List<String> whileDestTerminalId;
	private List<String> blackDestTerminalId;
	
	
	private DeliverListener deliverListener = new DeliverListenerImpl();
	
	
	
    
    
    
    public DeliverListener getDeliverListener() {
        return deliverListener;
    }
    
    public void setDeliverListener(DeliverListener deliverListener) {
    
        this.deliverListener = deliverListener;
    }
    public String getServiceId() {
        return serviceId;
    }
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }
    public int getMoLimitInSec() {
		return moLimitInSec;
	}
	public void setMoLimitInSec(int moLimitInSec) {
		this.moLimitInSec = moLimitInSec;
	}
	public int getMtLimitInSec() {
		return mtLimitInSec;
	}
	public void setMtLimitInSec(int mtLimitInSec) {
		this.mtLimitInSec = mtLimitInSec;
	}
	public List<String> getWhileDestTerminalId() {
		return whileDestTerminalId;
	}
	public void setWhileDestTerminalId(List<String> whileDestTerminalId) {
		this.whileDestTerminalId = whileDestTerminalId;
	}
	public List<String> getBlackDestTerminalId() {
		return blackDestTerminalId;
	}
	public void setBlackDestTerminalId(List<String> blackDestTerminalId) {
		this.blackDestTerminalId = blackDestTerminalId;
	}
	public int getDayMtLimit() {
		return dayMtLimit;
	}
	public void setDayMtLimit(int dayMtLimit) {
		this.dayMtLimit = dayMtLimit;
	}
	public String getSrcid() {
		return srcid;
	}
	public void setSrcid(String srcid) {
		this.srcid = srcid;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getMaxConnNum() {
		return maxConnNum;
	}
	public void setMaxConnNum(int maxConnNum) {
		this.maxConnNum = maxConnNum;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	
	public String getBlackDestTerminalIds() {
		if(blackDestTerminalId == null || blackDestTerminalId.size() == 0){
			return null;
		}
		String result = "";
		for(String s : blackDestTerminalId){
			result += s+",";
		}
		return result;
	}
	public String getWhileDestTerminalIds() {
		if(whileDestTerminalId == null || whileDestTerminalId.size() == 0){
			return null;
		}
		String result = "";
		for(String s : whileDestTerminalId){
			result += s+",";
		}
		return result;
	}
}
